<template>
  <div class="home-index">
    首页页面
    <van-button type="primary">主要按钮</van-button>
  </div>
</template>

<script>
/* 引入接口数据请求 */
import { getHomeData } from '@/api/constants'

export default {
  name: 'homeIndex',
  created() {
    /*
     * 开始进入首页=>查询首页数据
     */
    getHomeData(1).then(data => {
      console.log('getHomeSwiper', data)
    })
  },
}
</script>

<style lang="less" scoped>

</style>
